package cn.tedu.zhyl.nurseManager.mapper;

import cn.tedu.zhyl.nurseManager.pojo.dto.NurseProjectQuery;
import cn.tedu.zhyl.nurseManager.pojo.entity.NurseProject;
import cn.tedu.zhyl.nurseManager.pojo.vo.NurseProjectVO;
import cn.tedu.zhyl.nurseManager.pojo.vo.NursingItemVO;
import org.apache.ibatis.annotations.Select;
import org.springframework.stereotype.Repository;

import java.util.List;
@Repository
public interface NurseProjectMapper {
    List<NurseProjectVO> select(NurseProjectQuery nurseProjectQuery);

    void insert(NurseProject nurseProject);

    void update(NurseProject nurseProject);

    void deleteById(Long id);

    @Select("select id,name from nursing_project")
    List<NursingItemVO> getList();

}
